﻿    <!DOCTYPE html>
<html lang="zh-CN">
<style>
    #tr{
        height: 30px;
    }

</style>
      <br>
      <div class="bjui-pageContent">
          <br>
           <h4 align="center">工艺流程单</h4><br>
          <div>
              <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/bb214/openTable" method="post">
              <g:hiddenField name="SYS_QUERY_NAME" value="openTable" />
              <g:hiddenField name="EXPORT_CONTENT_NAME" value="OpenTable" />
                  <input type="hidden" name="lotId" value="${lotId}"/>

                  <button type="button" class="btn-blue" data-url="${request.getContextPath()}/bb214/exportExcelt" data-toggle="doexport" data-confirm-msg="确定要导出信息吗？" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
              </form>
              <g:if test="${openTableList.size() > 0}">
                <table  text-align="center" data-toggle="tablefixed" data-width="100%"    data-nowrap="true" >
                    <tr>
                        <th width="95">MES批号</th>
                        <td width="95">${openTableList.LOT_ID[0]}</td>
                        <th width="95">产品型号</th>
                        <td width="95">${openTableList.PART_NAME[0]}</td>
                        <th width="95">产品图号</th>
                        <td width="95">${openTableList.RESERVED1[0]}</td>
                    </tr>
                    <tr>
                        <th width="95">调度单号</th>
                        <td width="95">${openTableList.WO_ID[0]}</td>
                        <th width="95">投片数量</th>
                        <td width="95">${openTableList.MAIN_QTY[0]}</td>
                        <th width="95">投片日期</th>
                        <td width="95">${openTableList.START_TIME[0]}</td>
                    </tr>
                    <tr>
                        <th width="95">成模批号</th>
                        <td width="95">${openTableList.CUSTOMER_ORDER[0]}</td>
                        <th width="95">组装批号</th>
                        <td width="95">${openTableList.CUSTOMER_PART_ID[0]}</td>
                        <th width="95">封装批号</th>
                        <td width="95">${openTableList.CUSTOMER_CODE[0]}</td>
                    </tr>
                </table>
            </g:if>
            <g:else>
                <g:render template="../template/emptyPanel" />
            </g:else>
         </div >

         <div>
                <g:if test="${tableList.size() > 0}">
                    <table  text-align="center" data-toggle="tablefixed"    data-nowrap="true" >
                        <tr id="tr">
                            <th width="95">序号</th>
                            <th width="95">工步名称</th>
                            <th width="95">进片数量</th>
                            <th width="95">出片数量</th>
                            <th width="95">进片时间</th>
                            <th width="95">出片时间</th>
                            <th width="95">操作人</th>
                        </tr>
                        <g:each in="${tableList}" status="i" var="tableInstance">
                            <tr >
                                <td width="95">${i+1}</td>
                                <td width="95" text-align="center" >
                                    <a href="${request.getContextPath()}/bb214/onceStepTable?stepName=<%=tableInstance.STEP_NAME%>&stepRrn=<%=tableInstance.STEP_RRN%>&lotId=<%=lotId%>&partRrn=<%=tableInstance.PART_RRN%>" data-toggle="navtab"  data-options="{id:'data', title:'工步详细记录'}">
                                        ${tableInstance.STEP_DESC}
                                    </a>
                                </td>
                                <td width="95">${tableInstance.IN_QTY}</td>
                                <td width="95">${tableInstance.OUT_QTY}</td>
                                <td width="95">${tableInstance.IN_TIME}</td>
                                <td width="95">${tableInstance.OUT_TIME}</td>
                                <td width="95">${tableInstance.USER_DESC}</td>
                            </tr>
                        </g:each>
                    </table>
                </g:if>
                <g:else>
                    <g:render template="../template/emptyPanel" />
                </g:else>
             </div>
      </div>
</html>